home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000054_amos-request@svcs1.digex.net_Wed Apr 9 21:48:53 1997.msg < prev    next >
Text File  |  1998-06-24  |  2KB  |  47 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id VAA11696
  3.     for <mcox@access.digex.net>; Wed, 9 Apr 1997 21:48:52 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id UAA01311
  6.     for amos-out; Wed, 9 Apr 1997 20:13:54 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id UAA01308
  9.     for <amos-list@svcs1.digex.net>; Wed, 9 Apr 1997 20:13:53 -0400 (EDT)
  10. Received: from smtp1.xs4all.nl (smtp1.xs4all.nl [194.109.6.51])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id UAA08800
  12.     for <amos-list@access.digex.net>; Wed, 9 Apr 1997 20:13:52 -0400 (EDT)
  13. Received: from magigimmix.xs4all.nl (magigimmix.xs4all.nl [194.109.6.25]) by smtp1.xs4all.nl (8.7.6/XS4ALL) with ESMTP id CAA23398; Thu, 10 Apr 1997 02:13:49 +0200 (MET DST)
  14. Received: from xs2.xs4all.nl (xs2.xs4all.nl [194.109.6.43]) by magigimmix.xs4all.nl (8.7.6/XS4ALL) with ESMTP id CAA21249; Thu, 10 Apr 1997 02:13:48 +0200 (MET DST)
  15. Received: from localhost (collin@localhost) by xs2.xs4all.nl (8.7.6/XS4ALL) with SMTP id CAA00905; Thu, 10 Apr 1997 02:13:48 +0200 (MET DST)
  16. Date: Thu, 10 Apr 1997 02:13:47 +0200 (MET DST)
  17. From: Branko Collin <collin@xs4all.nl>
  18. To: Hakan Venderlof <grok@karkis.canit.se>
  19. cc: amos-list@access.digex.net
  20. Subject: Re: div
  21. In-Reply-To: <334be52a@karkis.canit.se>
  22. Message-ID: <Pine.SUN.3.93.970410021201.810A-100000@xs2.xs4all.nl>
  23. MIME-Version: 1.0
  24. Content-Type: TEXT/PLAIN; charset=US-ASCII
  25. Status: RO
  26. X-Status: 
  27.  
  28. On 9 Apr 1997, Hakan Venderlof wrote:
  29.  
  30. > When I divide something like this:
  31. > 1717680/1000000
  32. > I get answer 1 but I want it to be 1.7
  33.  
  34. Use floats in the calculation:
  35. 1717680.0/1000000.0
  36.  
  37. If your numbers are integers to begin with, multiply them with 1.0 or add
  38. 0.0.
  39.  
  40. -- 
  41.  
  42. Branko Collin       http://www.xs4all.nl/~collin
  43. collin@xs4all.nl    http://www.kun.nl/undans/members/branko.html
  44.    "Quote removed for safety reasons"
  45.